package org.chameleon.threadpool;

import com.alibaba.fastjson.JSON;
import org.chameleon.datasource.convert.AbstractConverter;
import org.chameleon.threadpool.entity.ThreadPoolConfig;


public class JsonPoolConvert extends AbstractConverter<String , ThreadPoolConfig> {
    public JsonPoolConvert( ) {
        super(source-> JSON.parseObject(source,ThreadPoolConfig.class),source->JSON.toJSONString(source));
    }
}
